<template>
  <div class="sql_item_wrap">
    <!-- <div>SQL</div>
    <div>{{ commonG6FromObj }}</div> -->
    <div class="inpt">
      <span style="font-size: 14px; color: #606266">名称：</span>
      <el-input
        style="width: 85%"
        v-model="commonG6FromObj.name"
        placeholder="请输入"
      ></el-input>
    </div>
    <el-table
      class="inpt"
      :data="commonG6FromObj.tableData"
      style="width: 100%"
    >
      <el-table-column prop="id" label="编号"> </el-table-column>
      <el-table-column prop="sourceUrl" label="数据源"> </el-table-column>
      <el-table-column prop="tableName" label="表名"> </el-table-column>
      <el-table-column prop="sourceUrl" label="映射名称"> </el-table-column>
    </el-table>
    <div class="inpt">
      <span style="font-size: 14px; color: #606266; line-height: 50px"
        >脚本内容：</span
      >
      <el-input
        style="width: 85%"
        v-model="commonG6FromObj.jiaobenContent"
        type="textarea"
        placeholder="请输入"
      ></el-input>
    </div>
    <div class="inpt">
      <span style="font-size: 14px; color: #606266">
        <el-radio v-model="commonG6FromObj.isRefech" :label="true">是</el-radio>
        <el-radio v-model="commonG6FromObj.isRefech" :label="false">否</el-radio></span
      >
    </div>
    <div class="inpt">
      <span style="font-size: 14px; color: #606266">并发控制：</span>
       <el-radio v-model="commonG6FromObj.isBingfa" :label="true">是</el-radio>
        <el-radio v-model="commonG6FromObj.isBingfa" :label="false">否</el-radio>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    commonG6FromObj: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {};
  },
  methods: {
    btnChange() {
      var file = document.getElementById("file");
      file.click();
    },
  },
};
</script>
<style scoped lang="less">
.inpt {
  margin-bottom: 20px;
}
</style>
